import { Models } from "../common/typings/model"


const dev = {
    environment: 'dev',
    database: {
        dbName: 'ts',
        host: 'localhost',
        port: 3306,
        username: 'root',
        password: '123456'
    }
}
const test = {
    environment: 'test',
    database: {
        dbName: 'nodejs',
        host: '106.13.202.207',
        port: 3306,
        username: 'root',
        password: 'root'
    }
}
const product = {
    environment: 'product',
    database: {
        dbName: 'ts',
        host: '1.116.40.155',
        port: 3306,
        username: 'ts',
        password: 'HmmDYdLBSHF2LTzh'
    }
}
let config: Models.DbConfig = product
if(process.env.NODE_ENV === 'development'){
    config = dev
}



export default config